class AdminUser < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable,
         :recoverable, :rememberable, :trackable, :validatable
  enum role: {
      system_admin: -1,
      super_admin: 0,
      company_admin: 1,
      store_admin: 2,
      channel_admin: 3,
      customer_service: 4,
      human_resource: 5,
      audit: 10,
      data_analyst: 11,
      course_manager: 12
  }
end
